<!--
 * @Author: shenya
 * @Date: 2023-09-11 15:22:11
 * @Description: 话题管理dialog
-->
<template>
  <el-dialog
    title="动态列表"
    :visible.sync="visible"
    width="80%"
    append-to-body
  >
    <usercontent
      :topic-name="topicName"
      :topic-type="type"
    ></usercontent>
  </el-dialog>
</template>
<script>
import { tableOption } from '@/const/crud/community-content/user';
import crudMixins from '@/mixins/crud';
import usercontent from '../usercontent.vue';
export default {
  components: {
    usercontent,
  },
  mixins: [crudMixins],
  props: {
    value: {
      type: Boolean,
      default: false,
    },
    type: {
      type: String,
    },
    topicName: {
      type: String,
    },
  },
  data() {
    return {
      form: {},
      tableOption: tableOption(this.type === 'topic'),
    };
  },
  computed: {
    visible: {
      get() {
        return this.value;
      },
      set(val) {
        this.$emit('input', val);
      },
    },
  },
  mounted() {
    console.log('ttttt', this.type);
  },
  methods: {
    //列表分页
    getList() {},
    //动态详情
    detail() {},
    //评论详情
    comment() {},
  },
};
</script>
<style lang="scss" scoped></style>
